<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>

<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>

<script language="javascript" type="text/javascript">  
  
	$(document).ready(function() {
		//alert("test ajax");
		$("button").click(function() {
			alert("clicked");
			$.get("testajax.do", function(data, status) {
				alert("数据：" + data + "\n状态：" + status);
			});
		});
	});
</script>

<body>

	<a href="test.do"><span>testmvx</span></a>
	<br />

	<form id="form1" action="login.do" method="get">
		<input type="text" id="name" name="username" /> 
		<input value="submit" type="submit" />
	</form>
	<br/>
	
	<p>测试rest风格的URL</p>
	<form id="" action="testrest/45" method="post">
	   <input type="hidden" name="_method" value="DELETE"/>
	   <input type="submit" value="Test Delete"/>
	</form>
	
     <br/>
	<button>向页面发送 HTTP GET 请求，然后获得返回的结果</button>

</body>
</html>